package com.luo.gmall.search.service;

import com.luo.gmall.search.vo.SearchParamVo;
import com.luo.gmall.search.vo.SearchResponseVo;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;

import java.io.IOException;

/**
 * @author Zoro
 * @date 2021年11月09
 */
public interface SearchService {
    SearchResponseVo search(SearchParamVo searchParamVo);

    void createIndex(Long spuId, Channel channel, Message message) throws IOException;
}
